package cn.fsw.pethome.product.mapper;

import cn.fsw.pethome.product.domain.Product;
import cn.fsw.pethome.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fsw
 * @since 2022-10-27
 */
@Repository
public interface ProductMapper extends BaseMapper<Product> {

    Product selectByDetail(Long id);

    void offsaleBatch(@Param("date") Date date,@Param("ids") List<Long> ids);
}
